directives.directive('myImgUpload', ['tools','Session',function (tools,Session) {
	return {
		restrict: 'A',
		scope:{
			fileupOk: '&'
		},
		link: function (scope, iElement, iAttrs) {

			iElement.bind('change',function(){
				scope.fileupOk();				
			});
		}
	};
}])